Skip to content

1366 filtering on some pages broken#1371

Merged
aharwood2 merged 22 commits into
devfrom
1366-filtering-on-some-pages-broken
Jul 1, 2026
Merged

1366 filtering on some pages broken#1371
aharwood2 merged 22 commits into
devfrom
1366-filtering-on-some-pages-broken

Conversation

@PhilBradbury

Copy link
Copy Markdown
Contributor

Closes #1366

…er on it as a simple integer where required.
…Name property rather than custom filtering based on pattern matching and Linq.
…nager filtering. Also adjusted filtering by CurrentGrade to use a calculated integer value.
…te rather than being set in the calling code.
@PhilBradbury PhilBradbury linked an issue Jun 10, 2026 that may be closed by this pull request
2 tasks
@PhilBradbury PhilBradbury self-assigned this Jun 10, 2026
Adjusted Faculty and School filtering to use the Code for each as the filterable property.
Removed filter from some columns where it didn't make much sense (costs, day rate, dates etc.)
@PhilBradbury PhilBradbury marked this pull request as ready for review June 10, 2026 12:51
@aharwood2 aharwood2 added this to the v1.14.0.1 milestone Jun 11, 2026

@aharwood2 aharwood2 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this probably needs a walkthrough so I can see the differences more clearly. Will need to check that the changes don't alter the UX in a way they might not like.

Comment thread PPMTool/Pages/Projects.razor
Comment thread PPMTool/Pages/Projects.razor.cs
Comment thread PPMTool/Pages/Projects.razor Outdated
Comment thread PPMTool/Pages/People.razor.cs Outdated
@PhilBradbury

Copy link
Copy Markdown
Contributor Author

Walkthrough video now available at: https://www.loom.com/share/f3190d9bb90a4faeab6a5f51ef56f16e

The egregious bracket after the value in one of the monetary columns has been removed.

@sjmf

sjmf commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Walkthrough video now available at: https://www.loom.com/share/f3190d9bb90a4faeab6a5f51ef56f16e

Very nice @PhilBradbury - thanks much!

@aharwood2 aharwood2 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still on the fence with this approach. It could also relate to how we manage derived properties via #1375 as well. I might as Co-Pilot to review it and see if it has any useful insights.

Comment thread PPMTool.Data/Entities/Project.cs Outdated
Comment thread PPMTool/Pages/Projects.razor

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses the broken/crashing filtering behavior on the People and Manage Projects pages (issue #1366), likely triggered by changes in Radzen’s filtering behavior, by shifting filtering/sorting back toward Radzen’s built-in mechanisms and introducing grid-friendly derived properties.

Changes:

  • Adjust Radzen DataGrid filtering mode/config and align column FilterProperty/SortProperty with actual nested fields (e.g., School.Faculty.Code, LineManager.Name).
  • Introduce derived, non-persisted properties to support filtering in grids (Project.FundsReceived, Person.CurrentGrade).
  • Remove/reshape custom filtering logic in the page code-behind to reduce filter crashes and improve paging/counting behavior.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
PPMTool/Pages/Projects.razor.cs Populates FundsReceived for grid filtering; removes custom Faculty/School filtering block.
PPMTool/Pages/Projects.razor Updates grid/column filter modes and adds typed/date/numeric filter configuration; switches to filtering on nested School/Faculty properties.
PPMTool/Pages/People.razor.cs Simplifies custom filtering to SkillTags only; relies on Radzen’s args.Filter for other filters; updates sorting/paging/count flow.
PPMTool/Pages/People.razor Updates Line Manager column to filter/sort by LineManager.Name; disables filtering on problematic derived columns; switches grade display to CurrentGrade.
PPMTool.Data/Entities/Project.cs Adds [NotMapped] FundsReceived to support grid filtering.
PPMTool.Data/Entities/Person.cs Adds [NotMapped] CurrentGrade to support grid filtering.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread PPMTool/Pages/Projects.razor Outdated
Comment thread PPMTool/Pages/Projects.razor.cs Outdated
Comment thread PPMTool/Pages/People.razor.cs Outdated
Comment thread PPMTool.Data/Entities/Project.cs Outdated
@aharwood2 aharwood2 modified the milestones: v1.14.0.1, v1.14.1 Jun 15, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@aharwood2 aharwood2 merged commit efbd04f into dev Jul 1, 2026
11 checks passed
@aharwood2 aharwood2 deleted the 1366-filtering-on-some-pages-broken branch July 1, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filtering on some pages broken

4 participants